package com.atguigu.gulimall.order.feign;

import com.atguigu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("gulimall-product")
public interface ProductFeign {
    /**
     * 根据skuid查询spu信息
     */
    @GetMapping("product/spuinfo/spuInfo/{skuId}")
    public R getSpuInfoSkuId(@PathVariable("skuId")Long skuId);

    /**
     * 信息
     */
    @RequestMapping("product/spuinfo/info/{skuId}")
    //@RequiresPermissions("product:skuinfo:info")
    public R info(@PathVariable("skuId") Long skuId);
}
